<?php


/**
 * Notes:
 * PROJECT_NAME : ERP v1.8 重构erp
 * User: 夏鱼儿<397072174@qq.com>
 * Date: 2024/3/27
 * Time: 11:19
 */

namespace app\admin\model;

use think\Model;

/**
 *  Class GoodsRule
 *
 * @property int $id
 * @property string $sku
 */
class GoodsRule extends Base
{

    public static function onAfterInsert(GoodsRule $model): void
    {
        $model->sku = getPaddedNumber($model->id, 9);
    }

}